import React from 'react'
import { Button } from 'antd-mobile'
import TextareaItem from 'zhang-components/form/textarea-item'
import { listArtistOrgService } from './../../../services/query'

import './ListTwoView.less'

const prefixCls = 'list-two-111'


class List2 extends React.Component {
  constructor() {
    super()

    this.state = {
      title: '这是一个标题',
      name: 'zhangyongle',
      loading: false,
    }
  }

  componentDidMount() {
    listArtistOrgService({ a: 'ASSS', pageSize: 5 })
      .then(res => console.log(111, res))
  }

  update = (data) => {
    console.log(111, data)
    this.setState(data)
  }

  render() {

    return (
      <div className={prefixCls}>
        <TextareaItem
          value={this.state.name}
          onChange={this.update}
          autoHeight
          title="标题SSS"
          fieldname='name'
          // editable={false}
        />
      </div>
    )
  }
}

export default List2